//
//  SPTabBarController.m
//  StarPosture
//
//  Created by 陈曦 on 15/9/7.
//  Copyright (c) 2015年 chenxi. All rights reserved.
//

#import "SPTabBarController.h"
#import "SPNavigationController.h"
#import "ConstellationViewController.h"
#import "RecommendController.h"
#import "LuckController.h"
#import "MineController.h"

@interface SPTabBarController ()

@end

@implementation SPTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //1.运势的标题
    ConstellationViewController *constellation = [[ConstellationViewController alloc] init];
    SPNavigationController *constellationNav = [[SPNavigationController alloc] initWithRootViewController:constellation];
    constellationNav.title = @"姿势";
    [self addChildViewController:constellationNav];
    
    //2.星推荐
    RecommendController *recommend = [[RecommendController alloc] init];
    SPNavigationController *recommendNav = [[SPNavigationController alloc] initWithRootViewController:recommend];
    recommendNav.title = @"星荐";
    [self addChildViewController:recommendNav];
    
    //3.摇一摇
    LuckController *luck = [[LuckController alloc] init];
    SPNavigationController *luckNav = [[SPNavigationController alloc] initWithRootViewController:luck];
    luckNav.title = @"求签";
    [self addChildViewController:luckNav];
    
    //4.我的
    MineController *mine = [[MineController alloc] init];
    SPNavigationController *mineNav = [[SPNavigationController alloc] initWithRootViewController:mine];
    mineNav.title =@"我的";
    [self addChildViewController:mineNav];
    
    
    

    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
